from core.basehandler import BaseHandler
from core.room import Room
from core.action import Action

class career_fair(Room):
    def __init__(self, room_id):
        Room.__init__(self, room_id)    # do basic initialization for every room bla bla
        self.careerfair_locked = True
        # add inventory items
        
        
        # build list of actions
        self.add_action(lobby)
       
    
    # return description of room.
    def get_description(self):
        if self.careerfair_locked:
            desc = "Please submit your resume for review by employers."
        else:
            desc = "Welcome to the annual MBA career fair. Get your 30 second pitch ready, you have lots of networking to do! Stop by company booths and collect business cards on your way to better job prospects."
        return desc
    
    # return image of room
    def get_image(self):
        return 'career_fair.jpg'

class CareerFairHandler(BaseHandler):
    
    # return class to use to create a new instance of this room
    def get_room_class(self):
        return career_fair

# define actions for this room


class lobby(Action):
    def __init__(self):
        Action.__init__(self, "lobby")    # do basic initialization for every action
    
    # return description of action (used in label on webpage)
    def get_description(self):
        return "Return to the lobby"
    
    # return id of room to enter when action is complete
    def get_destination(self):
        return 'lobby'
    
    # return http method to use when user clicks on this action
    # use "get" if just moving to another room.  if changing something
    # like the state of an inventory item or room then use "post"
    def get_method(self):
        return "get"